package com.cskaoyan._01basic._05scanner;

//Scanner 键盘输入

//1.导包，找到Scanner这个类在哪
import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        //2.创建对象，表示我现在准备要用Scanner这个类
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入整数");
        //3.接收数据
        int number1 = sc.nextInt();

        System.out.println(number1);

        //再次接受数据
        int number2 = sc.nextInt();
        System.out.println(number2);


    }
}
